$OpenBSD: patch-src_lcrypto_c,v 1.1 2011/04/18 18:12:47 jasper Exp $
--- src/lcrypto.c.orig	Sun Apr 17 19:33:39 2011
+++ src/lcrypto.c	Sun Apr 17 19:35:23 2011
@@ -96,7 +96,7 @@ static int evp_digest(lua_State *L) 
   EVP_MD_CTX *c = evp_pget(L, 1);
   EVP_MD_CTX *d = NULL;
   unsigned char digest[EVP_MAX_MD_SIZE];
-  size_t written = 0;
+  unsigned int written = 0;
   unsigned int i;
   char *hex;
   
@@ -148,7 +148,7 @@ static int evp_fdigest(lua_State *L)
   const char *s = luaL_checkstring(L, 2);
   const EVP_MD *type = EVP_get_digestbyname(type_name);
   unsigned char digest[EVP_MAX_MD_SIZE];
-  size_t written = 0;
+  unsigned int written = 0;
   unsigned int i;
   char *hex;
   
@@ -238,7 +238,7 @@ static int hmac_digest(lua_State *L)
 {
   HMAC_CTX *c = hmac_pget(L, 1);
   unsigned char digest[EVP_MAX_MD_SIZE];
-  size_t written = 0;
+  unsigned int written = 0;
   unsigned int i;
   char *hex;
 
@@ -284,7 +284,7 @@ static int hmac_fdigest(lua_State *L)
 {
   HMAC_CTX c;
   unsigned char digest[EVP_MAX_MD_SIZE];
-  size_t written = 0;
+  unsigned int written = 0;
   unsigned int i;
   char *hex;
   const char *t = luaL_checkstring(L, 1);
